package custcare

import (
	"github.com/gin-gonic/gin"
	v1 "wave-admin/controller/v1"
	"wave-admin/middleware"
)

type ReplyRouter struct{}

func (s *ReplyRouter) InitReplyRouter(Router *gin.RouterGroup)  {
	replyRouterWithoutRecord := Router.Group("/reply")
	replyRouter := Router.Group("/reply").Use(middleware.Record())
	replyApi := v1.ApiGroupApp.CustCareGroup.ReplyApi
	{
		replyRouter.POST("/reply", replyApi.AddReply)
		replyRouter.PUT("/reply/:id", replyApi.UpdateReply)
		replyRouter.DELETE("/reply/:id", replyApi.DeleteReply)
	}
	{
		replyRouterWithoutRecord.GET("/getList", replyApi.ReplyList)
		replyRouterWithoutRecord.GET("/getSort", replyApi.GetSort)
		replyRouterWithoutRecord.GET("/getSelectReplyGroupList", replyApi.SelectReplyGroupList)
	}
}
